package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.StaffInfoEntity;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClient;

public interface UpdateUserInfoContractor {
    interface Model {
        ApiService mService = NetClient.getInstance().net().create(ApiService.class);

        void getUserData(String loginName, String role);

        interface CallBack extends BaseHttpListener {
            void onSuccess(BaseResponse<StaffInfoEntity> response);
        }
    }

    interface View extends BaseView {
        void onGetDataSuccess(StaffInfoEntity data);
    }

    interface Presenter {
        void updateUserInfo();
    }
}
